From eb399bf5204d8c792b4f3053a5a25fd62e67a0e0 Mon Sep 17 00:00:00 2001 From: robertl Date: Sat, 12 Jul 2003 04:46:35 +0000 Subject: [PATCH] Alan Acurry reports that Mapsned hoses if you edit a file with a comment that's > 30 chars, so we truncate them here. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@416 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mapsend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpsbabel/mapsend.c b/gpsbabel/mapsend.c index 4ea1553e3..f0dba1a56 100644 --- a/gpsbabel/mapsend.c +++ b/gpsbabel/mapsend.c @@ -411,6 +411,8 @@ mapsend_waypt_pr(const waypoint *waypointp) c = strlen(waypointp->description); else c = 0; + + if (c > 30) c = 30; fwrite(&c, 1, 1, mapsend_file_out); fwrite(waypointp->description, c, 1, mapsend_file_out); -- 2.30.2